﻿using System.ComponentModel;
using RaytracerLib.RenderableObjects;

namespace Raytracer.PropertyGridDecorators
{
    public class DiscObjectProperties : RenderableObjectProperties
    {
        private DiscObject m_disc;

        public DiscObjectProperties(DiscObject a_disc) :
            base(a_disc)
        {
            m_disc = a_disc;
        }

        [Category(Categories.PROPERTIES)]
        [TypeConverter(typeof(DoubleConverter))]
        public double Radius
        {
            get
            {
                return m_disc.Radius;
            }
            set
            {
                m_disc.Radius = value;
            }
        }
    }
}